E:/E+I/Informatik/Projekte/FH/n-Damen Problem/psolution.c

Go to the documentation of this file.
00001 
00009 #include "ndame.h"
00010 
00021 void psolution(struct data*d1)
00022 {
00023     int ik;
00024     int ii;
00025     
00026     for(ii=0;ii<d1->iblength;ii++)
00027     {
00028         for(ik=0;ik<d1->iblength;ik++)
00029         {                              
00030             gotoxy(X_POS+ik,Y_POS+ii);
00031             if(d1->iboard[ii][ik])
00032             {
00033                 printf("%c",QUEEN);                   //prints solution on screen
00034             }
00035         }
00036     }
00037 }

Generated on Sun Dec 18 19:26:14 2005 for n-Queens Problem by  doxygen 1.4.5